import random

computer=random.randint(1,10)
print(computer)
i=1
while i<=3:
    user_num=int(input('请输入一个数字'))
    if user_num>computer:
        print('大了')

    elif  user_num<computer:
        print('小了')

    else:
        print('对了')
        break
    i+=1






